#include <stdio.h>

void reverse(int arr[],int size);

int main()
{
	int i = 0;
	int arr[10]={1,2,3,4,5,6,7,8,9,10};
	
	reverse(arr,10);
	
	for(i = 0;i < 10;i++)
	{
		printf("%d ",arr[i]);
	}
	
	return 0;	
} 

void reverse(int arr[],int size)
{
	int tmp = 0,l = 0,r = size - 1;
	
	while(l < r)
	{
		tmp = arr[l];
		arr[l] = arr[r];
		arr[r] = tmp;
		
		l++;
		r--;
	}
}
